const initialState = {
    channels: [],
    // 文章
    results: [],
    page: 1,
    // 显示几页
    per_page: 10,
    // 总页数
    total_count: 0,
};
const article = (state = initialState, action) => {
    switch (action.type) {
        case "article/setChannels":
            return {
                ...state,
                channels: action.payload,
            };
        case "article/setArticles":
            return {
                ...state,
                ...action.payload,
            };
        default:
            return state;
    }
};
export default article;
